package ca.uvic.group2.api;

import java.io.Serializable;

public class StockRecord implements Serializable {

    public String stock;
    public int amount;
    public int reserveAmount; // This reserve is non-persistent and used only by transaction server
    public int triggerReserveAmount; // This reserve is stored in the database

    public StockRecord(StockRecord src) {
        this(src.stock, src.amount);
        this.reserveAmount = src.reserveAmount;
        this.triggerReserveAmount = src.triggerReserveAmount;
    };

    public StockRecord() {
    }

    public StockRecord(String stock, int amount) {
        this.stock = stock;
        this.amount = amount;
    }

}
